home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Resource Library: Multimedia
/
Resource Library: Multimedia.iso
/
hypertxt
/
msdos
/
hydos10
/
edlin
< prev
next >
Wrap
Text File
|
1991-04-11
|
3KB
|
75 lines
EDLIN
A line editor. It can be used to create and edit ascii files.
COMMAND TYPE: External VERSION: 2.0 and up
USE: EDLIN [d:][path] filename [/B]
d: path filename specifies the name of the file to create or edit. If
the /B parameter is not used, EDLIN will stop loading the specified
file when the first end of file marker (Ctrl-Z) is encountered. If /B
is used, the entire file will be loaded. EDLIN creates a file if the
specified file is not found.
A brief summary of EDLIN commands is given below. See the MSDOS users
reference manual for full details.
Many commands will allow you to specify line numbers. You may use the
symbol . in place of the current line number and # in place of the
line number of the last line in the buffer.
[n]A APPEND loads lines from the disk and places them at the end of the
input buffer. [n] specifies the number of lines to append to
the current file.
[n],[n],[n][,count]C COPY copies the contents of a line or range of
lines to another location. The first two [n]'s specify the
range of lines to copy. The third [n] specifies the line to
copy to. [count] specifies the number of times that the copy
will be performed.
[n][,n]D DELETE deletes a line or range of lines. The [n] parameters
specify the first and last line to delete.
[n] calls up a line of text for editing.
E EXIT saves the current file and exits EDLIN.
[n]I INSERT inserts lines of text in the current file. [n]
specifies the line number where the insert will begin.
[n][,n]L LIST displays a line or range of lines. [n][,n] specifies
the first and last lines to list.
[n],[n],n M MOVE moves a line or range of lines to a specified line.
The first two [n]'s specify the first and last lines to
move. The third line number specifies where the text will be
moved to.
[n][,n] P PAGE allows you to scroll through a file one PAGE (23
lines) at a time. [n][,n] specifies the first and last
lines to display.
Q QUIT exits EDLIN without saving the current file.
[n][,n][?] R s1^Zs2 REPLACE replaces all occurrences of a specified
string with a second string. [n][,n] specify the range of lines
to perform the REPLACE on. The optional ? will request an
O.K.? prompt after each replace. s1 specifies the string to
search for and s2 is the string to replace it with. A control-Z
separates the two strings.
[n][,n][?] Sstring SEARCH searches for a specified string. [n][,n]
specify the range of lines to perform the SEARCH on. The
optional ? will request an O.K.? prompt after each replace.
string is the string to search for.
[n] Tfile TRANSFER loads the contents of a specified file into the file
currently being edited. [n] specifies the location where the
file being TRANSFERred (merged) will be placed. file is the
file to be TRANSFERred.
[n]W WRITE writes lines to disk from the file currently being edited.
[n] specifies the number of lines to write to disk. This
command is used to free up memory.